using System;

namespace Mss.Common.Helpers.SelectableCollection
{
    /// <summary>
    /// Interface for objects which can be selected. 
    /// </summary>
    public interface ISelectable
    {
        /// <summary>
        /// Notifies about <see cref="IsSelected"/> property changed.
        /// </summary>
        event EventHandler<SelectionChangedEventArgs> SelectionChanged;

        /// <summary>
        /// Gets or sets Selected state.
        /// </summary>
        bool IsSelected { get; set; }
    }
}